# 导包
from selenium import webdriver

# 创建浏览器对象
driver = webdriver.Chrome()

# 发起访问
url = 'http://www.baidu.com'
driver.get(url)

print('当前url:', driver.current_url)
driver.close()